struct ac_timer v_timer; /* scheduling timer */
static void virt_timer(unsigned long foo);
+static void dump_rqueue(struct list_head *queue, char *name);
/*****************************************************************************
/****************************************************************************
* Domain requested scheduling operations
- * KAF: No, turn it back into do_yield()!
+ * KAF: turn it back into do_yield()!
****************************************************************************/
long do_sched_op(void)
{
* - current task is idle task
* - new processes evt is lower than current one
* - the current task already ran for it's context switch allowance
+ * XXX RN: not quite sure about the last two. Strictly, if p->evt < curr->evt
+ * should still let curr run for at least ctx_allow. But that gets quite messy.
****************************************************************************/
void reschedule(struct task_struct *p)
{
ASSERT(r_time != 0);
ASSERT(r_time > ctx_allow);
+#if 0
if ( (r_time==0) || (r_time < ctx_allow)) {
printk("[%02d]: %lx\n", this_cpu, r_time);
dump_rqueue(&schedule_data[this_cpu].runqueue, "foo");
}
-
+#endif
prev->has_cpu = 0;
next->has_cpu = 1;